$(function () {
  initScale();
  $(window).resize(function () {
    initScale();
  });
});
//屏幕响应式
function initScale() {
    var current_width = 1920,
        current_height = 942;
    var win_width = $(window).width(),
        win_height = $(window).height(),
        width_scale = win_width / current_width,
        height_scale = win_height / current_height,
        left_offset = (win_width - current_width)/2,
        top_offset = (win_height - current_height)/2;
    $('.page-container').css({
        'transform': 'scale('+width_scale+','+height_scale+')',
        'left': left_offset,
        'top': top_offset
    });
}